Skip to content

Fix SQLite prepare options - #230

Closed
noise64 wants to merge 2 commits into
node-26-targetfrom
fix-sqlite-prepare-options
Closed

noise64 wants to merge 2 commits into
node-26-targetfrom
fix-sqlite-prepare-options

Conversation

@noise64

@noise64 noise64 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor
  • partial follow-up to GOL-1947, stacked on Switch node_compat to Node 26.13.1 #218 (node-26-target at d235247c384db960f61facb4d062321a7bded3dc); does not complete NJ-02
  • validate the four existing Database.prepare boolean options in Node 26 order, preserving undefined defaults, explicit false overrides, inherited/getter properties and setter behavior
  • reject invalid option bags/values with Node's SQLite errors; preserve error precedence and recheck database state after getters
  • restore four complete upstream option suites: readBigInts, returnArrays, allowBareNamedParameters, allowUnknownNamedParameters; no vendored assertions changed

Node compatibility

Compared with the exact stacked base above, runnable cases increase 3158 → 3162 and known gaps decrease 1303 → 1299. Primary coverage: 3158/4461 (70.8%) → 3162/4461 (70.9%); full-public: 3158/9617 (32.8%) → 3162/9617 (32.9%). Denominators and total inventory (10794) are unchanged. SQLite: 27 → 31 runnable, 32 → 28 known gaps, 117 total unchanged. Focused local executions and the full configured CI compatibility lane pass; ignored known gaps are not passing coverage.

Validation and limits

  • same public regression fails on unchanged implementation (missing TypeError for null), passes with the repair and on host Node 26.13.1; covers validation boundaries/precedence, single getter reads, defaults/overrides and asymmetric row/named-binding results
  • SQLite runtime: 12 passed; ordinary configured SQLite compatibility: 31 passed, 0 failed, 108 ignored
  • include-ignored diagnostics: statement suites 4 pass/18 fail → 7 pass/15 fail; named-parameter suites 1 pass/2 fail → 2 pass/1 fail. All 16 remaining broader failures retain their known-gap classifications
  • report contracts: 36 passed/1 ignored; SQLite DTS regeneration and read-only recheck passed; formatting, JS syntax, diff checks, all-target build and all-target Clippy passed (Cargo emits the existing redundant-homepage manifest warning)
  • stock Wasmtime 50.0.1, Rust 1.100.0, WASI SDK 25.0; wasm32-wasip2/Preview 3, explicit full-p3 runtime and full-no-logging-p3,golem,typescript-runtime compatibility components. Existing harness Golem features do not establish Golem consumer/recovery qualification
  • existing integral-Number binding mismatch remains: with readBigInts, Node returns Number for a bound integral Number in a bare SELECT, this runtime returns BigInt. Named-binding controls use explicit BigInts; native binding is unchanged
  • CI 45428022548 passed on 9747a85911620f9a6415014a480d532e841fa882, an empty commit on reviewed source head 00d779a8 with identical tree e687d528ed7e732d1787662c7ee285511a5cffa9. All 24 executed jobs passed, including all eight compatibility shards, nine runtime groups, skeleton Clippy, build/quick-checks and P3 checks. Retained CTRF results: compatibility 3162 passed/7632 skipped, runtime 592 passed/4 skipped, test-other 160 passed; no failures. Proof, release-binaries and publish were skipped. Full compatibility lane and full skeleton Clippy matrix were not repeated locally
  • author-run precommit evidence remains qualified by the retained provenance addendum: red-inputs-final.sha256 hashes an earlier fixture, not the final-red fixture. Same-final-test green/red chronology is supported by reviewed command history/source reconstruction; frozen evidence is unchanged. Statement lifetime/statistics/persistent preparation, isTransaction, zstd, finite-field DH, crypto and NJ-03 remain outside this repair; no Golem consumer/recovery qualification is claimed

@noise64 noise64 changed the title Fix SQLite prepare options [skip ci] Fix SQLite prepare options Nov 24, 2026
@noise64
noise64 marked this pull request as ready for review November 25, 2026 09:59
@noise64 noise64 closed this Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant